package com.foreveross.proxyip.monitor.vo;

import java.util.Date;

import com.foreveross.proxyip.infra.utils.DateUtils;

/**
 * 渠道vo
 * @author Administrator
 *
 */
public class ChannelEntityVO {
//	public final static SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
	private Long id;
	private String code;
	private String createName;
	private Date createTime;
	private String createTimeStr;
	private String creator;
	private Integer flgDeleted;
	private Integer isValid;
	private String name;
	private Integer state;
	private String validDefaultUrl;
	private String password;
	private Date lastTime;
	private Integer speedGrade;
	
	private Double times ;
	
	private String password2;
	
	
	private Integer [] speedGrades = null;
	
	public ChannelEntityVO() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	public ChannelEntityVO(Long id, String code, String createName,
			Date createTime, String creator, Integer flgDeleted,
			Integer isValid, String name, Integer state, String validDefaultUrl,Date lastTime) {
		super();
		this.id = id;
		this.code = code;
		this.createName = createName;
		this.createTime = createTime;
		this.createTimeStr=this.generateDateStr(this.createTime);
		this.creator = creator;
		this.flgDeleted = flgDeleted;
		this.isValid = isValid;
		this.name = name;
		this.state = state;
		this.validDefaultUrl = validDefaultUrl;
		this.lastTime=lastTime;
	}



	private String generateDateStr(Date date){
		return date==null?"":DateUtils.DATE_FMT_CN_BARS_YMD_HMS.format(date);
	}
    
	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}


	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getCreateName() {
		return createName;
	}
	public void setCreateName(String createName) {
		this.createName = createName;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	public Integer getFlgDeleted() {
		return flgDeleted;
	}
	public void setFlgDeleted(Integer flgDeleted) {
		this.flgDeleted = flgDeleted;
	}
	public Integer getIsValid() {
		return isValid;
	}
	public void setIsValid(Integer isValid) {
		this.isValid = isValid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public String getValidDefaultUrl() {
		return validDefaultUrl;
	}
	public void setValidDefaultUrl(String validDefaultUrl) {
		this.validDefaultUrl = validDefaultUrl;
	}


	public String getCreateTimeStr() {
		return createTimeStr;
	}


	public void setCreateTimeStr(String createTimeStr) {
		this.createTimeStr = createTimeStr;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public Date getLastTime() {
		return lastTime;
	}


	public void setLastTime(Date lastTime) {
		this.lastTime = lastTime;
	}


	public Integer getSpeedGrade() {
		return speedGrade;
	}


	public void setSpeedGrade(Integer speedGrade) {
		this.speedGrade = speedGrade;
	}


	public String getPassword2() {
		return password2;
	}


	public void setPassword2(String password2) {
		this.password2 = password2;
	}


	public Integer[] getSpeedGrades() {
		return speedGrades;
	}


	public void setSpeedGrades(Integer[] speedGrades) {
		this.speedGrades = speedGrades;
	}


	public Double getTimes() {
		return times;
	}


	public void setTimes(Double times) {
		this.times = times;
	}
	
}
